package com.boarsoft.boar.demo.order.entity;

import java.io.Serializable;

import com.boarsoft.dao.sharding.bean.HashedEntity;

public class PocTrxMessage implements HashedEntity, Serializable {
	private static final long serialVersionUID = -225891611812094744L;

	private String messageId;
	private int orderId;
	private int tenantId;
	private String messageStatus;
	private int messageTried;
	private String messageMemo;
	private String createTime;
	private String modifyTime;

	public PocTrxMessage() {
	}

	public PocTrxMessage(String messageId, int orderId, int tenantId, String messageStatus, int messageTried,
			String messageMemo, String createTime, String modifyTime) {
		super();
		this.messageId = messageId;
		this.orderId = orderId;
		this.tenantId = tenantId;
		this.messageStatus = messageStatus;
		this.messageTried = messageTried;
		this.messageMemo = messageMemo;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
	}

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public int getTenantId() {
		return tenantId;
	}

	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	public String getMessageStatus() {
		return messageStatus;
	}

	public void setMessageStatus(String messageStatus) {
		this.messageStatus = messageStatus;
	}

	public int getMessageTried() {
		return messageTried;
	}

	public void setMessageTried(int messageTried) {
		this.messageTried = messageTried;
	}

	public String getMessageMemo() {
		return messageMemo;
	}

	public void setMessageMemo(String messageMemo) {
		this.messageMemo = messageMemo;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Override
	public int hash() {
		return tenantId;
	}

	@Override
	public String toString() {
		return "PocTrxMessage [messageId=" + messageId + ", orderId=" + orderId + ", tenantId=" + tenantId + ", messageStatus="
				+ messageStatus + ", messageTried=" + messageTried + ", messageMemo=" + messageMemo + ", createTime="
				+ createTime + ", modifyTime=" + modifyTime + "]";
	}

}
